<html>
<body>
<h2>Hello World!</h2>
请输入电话号码：<input type="text">
<button>点击</button>
</body>
<script src="jquery-3.3.1.min.js"></script>
<script type="text/javascript">
	
    $("button").click(function(){
        alert("jin");
        var pho = $("input").val();
        $.ajax({
            type:"post",
            dataType:"json",
            data:{
            	phone:pho
            },
            url:"http://localhost:8080/homepage/notecontorller.do",
            success:function(msg){
                console.log(msg);
            }
        })
    })
</script>
</html>
